package com.sa07.db;

import java.io.Serializable;

/**
 * 数据库配置
 * 
 * @author Long.shangbo
 * 
 *         2014-2-15 下午6:55:20
 */
public class DbConfig implements Serializable {

	private static final long serialVersionUID = -8038653386922318048L;

	/**
	 * 数据库类型
	 */
	private String dbType = null;

	/**
	 * 数据库IP
	 */
	private String dbIp = null;

	/**
	 * 数据库端口
	 */
	private int dbPort = 0;

	/**
	 * 数据库名称
	 */
	private String dbName = null;

	/**
	 * 数据库用户名
	 */
	private String dbUserName = null;

	/**
	 * 数据库密码
	 */
	private String dbUserPwd = null;

	public String getDbIp() {
		return dbIp;
	}

	public void setDbIp(String dbIp) {
		this.dbIp = dbIp;
	}

	public int getDbPort() {
		return dbPort;
	}
	
	public void setDbPort(int dbPort) {
		this.dbPort = dbPort;
	}

	public String getDbName() {
		return dbName;
	}

	public void setDbName(String dbName) {
		this.dbName = dbName;
	}

	public String getDbUserName() {
		return dbUserName;
	}

	public void setDbUserName(String dbUserName) {
		this.dbUserName = dbUserName;
	}

	public String getDbUserPwd() {
		return dbUserPwd;
	}

	public void setDbUserPwd(String dbUserPwd) {
		this.dbUserPwd = dbUserPwd;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return super.toString();
	}

	public String getDbType() {
		return dbType;
	}

	public void setDbType(String dbType) {
		this.dbType = dbType;
	}

	public DbConfig(String dbType, String dbIp, int dpPort, String dbName,
			String dbUserName, String dbUserPwd) {
		super();
		this.dbType = dbType;
		this.dbIp = dbIp;
		this.dbPort = dpPort;
		this.dbName = dbName;
		this.dbUserName = dbUserName;
		this.dbUserPwd = dbUserPwd;
	}

	public DbConfig() {
		super();
	}
}
